package com.aaa.hechengfuyong;

public abstract  class Car {
    public abstract void run();

}
abstract class RanYouCar extends Car{
    public abstract void run();
}
abstract class DianCar extends Car{
    public abstract void run();
}
class RedRanYou extends RanYouCar{

    @Override
    public void run() {
        System.out.println("红色的燃油车");
    }
}

class RedDianCar extends RanYouCar{

    @Override
    public void run() {
        System.out.println("红色的电车");
    }
}